package net.cdsunrise.com.worker2.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: LiuWei
 * @date: Create in 14:00 2018/05/24
 */
@RestController
public class HelloWorldController {

    @GetMapping("helloword")
    @PreAuthorize("hasAuthority('re1')")
    public String get() {
        return "helloword";
    }
}

